package com.bole.dao;

import com.bole.pojo.CollectionsDo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CollectionsDao extends JpaRepository<CollectionsDo, Long> {

    CollectionsDo findByCarIdAndUserId(Long carId,Long userId);

    List<CollectionsDo> findByUserId(Long userId);
    List<CollectionsDo> findByUserIdAndStatus(Long userId,Integer status);
    void deleteByCarIdAndUserId(Long carId,Long userId);

    void removeByCarIdAndUserId(Long carId,Long userId);
}
